package com.open.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.open.system.dao.LoanBankDao;
import com.open.system.domain.LoanBankDO;
import com.open.system.service.LoanBankService;



@Service
public class LoanBankServiceImpl implements LoanBankService {
	@Autowired
	private LoanBankDao loanBankDao;
	
	@Override
	public LoanBankDO get(Long id){
		return loanBankDao.get(id);
	}
	
	@Override
	public List<LoanBankDO> list(Map<String, Object> map){
		return loanBankDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return loanBankDao.count(map);
	}
	
	@Override
	public List<LoanBankDO> list2(Map<String, Object> map){
		return loanBankDao.list2(map);
	}
	
	@Override
	public int count2(Map<String, Object> map){
		return loanBankDao.count2(map);
	}
	
	@Override
	public int save(LoanBankDO loanBank){
		return loanBankDao.save(loanBank);
	}
	
	@Override
	public int update(LoanBankDO loanBank){
		return loanBankDao.update(loanBank);
	}
	
	@Override
	public int remove(Long id){
		return loanBankDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return loanBankDao.batchRemove(ids);
	}

    @Override
    public int updateHasemptyByUserId(Long id) {
        return loanBankDao.updateHasemptyByUserId(id);
    }
}
